﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DALScolarite
{
    public partial class scolarite_etudiants
    {
        public scolarite_etudiants verifetudiant(string cin) { 
            uvtmoyEntities ent = new uvtmoyEntities();
            var query = from s in ent.scolarite_etudiants
                        where s.cin == cin
                        select s;
            if (query.Any())
            {
                scolarite_etudiants res = query.First();
                return res;
            }
            else {
                return null;
            }
             

        }
    }
}
